<% if user_signed_in? %>
    <% name=current_user.name %>
    Xin chào<%= link_to(" #{name}", "/profile") %>
<% else %>
      <%= link_to('Register', new_user_registration_path)  %>
<% end %>